]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
calendar: Fix grid non-US week layouts
authorDavid Zeuthen <davidz@redhat.com>
Mon, 31 Jan 2011 20:53:56 +0000 (15:53 -0500)
committerDavid Zeuthen <davidz@redhat.com>
Mon, 31 Jan 2011 20:53:56 +0000 (15:53 -0500)
http://people.freedesktop.org/~david/calendar-grid-non-US-locale-collapse-bug.png

This was discovered when working on bug 641049:

 https://bugzilla.gnome.org/show_bug.cgi?id=641049

Signed-off-by: David Zeuthen <davidz@redhat.com>
js/ui/calendar.js

index dcea56672a7a4c8b0219d7218d68b814faf5b857..09a05531d0e2884330db8423554fe83a3d4dfe80 100644 (file)
@@ -578,7 +578,7 @@ Calendar.prototype = {
             // Hack used in lieu of border-collapse - see gnome-shell.css
             if (row == 2)
                 styleClass = 'calendar-day-top ' + styleClass;
-            if (iter.getDay() == 0)
+            if (iter.getDay() == this._weekStart)
                 styleClass = 'calendar-day-left ' + styleClass;
 
             if (_sameDay(now, iter))